﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Product.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Site.ViewModels.CompanyDetailModels>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Model.Company!=null? Model.Company.Name: "Doanh nghiệp bất động sản" %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="content">
    <div id="c_detail">
         <div class="investor">
        <%if (Model.Company != null ) { %>
          <h3>  
            <span class="investName"><%=Html.Encode(Model.Company.Name)%></span>            
          </h3>
          
          <div class="clear"></div>
          <div class="d11">
            <a href="/company/more/<%=Model.Company.ID %>/<%=Html.ToUrlFriendly(Model.Company.Name) %>">
                <% string imgCompanyPath = (Model.Company.ImagePath != null && Model.Company.ImagePath != string.Empty) ? SDT.Lib.Common.Utils.GenThumbnail(Model.Company.ID, 110, 110, Model.Company.ImagePath, Model.ImagePath, Model.ImageUrl) : SDT.Lib.Common.Globals.DefaultLogo; %>
                <img src="<%=imgCompanyPath %>" title="<%=Model.Company.Name %>" alt="<%=Model.Company.Name %>" class="bor_img" width="110" height="110" style="overflow:hidden"/>
            </a>
          </div>
          <div class="d12">
            <ul>
                <li>
                    <label>Địa chỉ:</label>
                    <%=Html.Encode(Model.Company.Address)%>
                </li>
                <li>
                    <label>ĐT:</label>
                    <%=Html.Encode(Model.Company.Phone)%> |
                    <label>
                        Fax:
                    </label>
                    <%=Html.Encode(Model.Company.Fax)%>
                </li>
                <li>
                    <label>Website:</label>
                    <%=Html.Encode(Model.Company.Website)%></li>
                <li>
                    <label>
                        Email:
                    </label>
                    <%=Html.Encode(Model.Company.Email)%>
                 </li>
            </ul>
          </div>
          <%--<div class="clear"></div>
          <div class="company_hd">
            <div class="hd_txt">
                <ul>
	                <li><a href="/company/more/<%=Model.Company.ID %>/<%=Html.ToUrlFriendly(Model.Company.Name) %>" class="act">GIỚI THIỆU</a></li>
	                <li><a href="/company/list/55">TIN DOANH NGHIỆP</a></li>
                    <li><a href="/project/index">DỰ ÁN</a></li>
                    <li><a href="/video/index">VIDEO</a></li>
                </ul>
                <div class="clear"></div>  
            </div>
          </div>--%>
          <div class="clear"></div>
          <div style="display:block; overflow:hidden; margin-top:10px; text-align:justify"><%=Model.Company.Description %></div>
          <%} %>
          </div>
    </div>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PathContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="LeftContent" runat="server">
<% Html.RenderAction("GetLeft", "Company", new { id =0}); %>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="RightContent" runat="server">
<% Html.RenderAction("Search", "Company", new { id = 0, cityid = Model.Company.CityID.HasValue ? Model.Company.CityID : 0, distrid = Model.Company.DistrictID.HasValue ? Model.Company.DistrictID.Value : 0 }); %>
<% Html.RenderAction("Hot", "Company", new { number = 5, typeid = 0, cityid =Model.Company.CityID.HasValue? Model.Company.CityID:0, distrid =Model.Company.DistrictID.HasValue? Model.Company.DistrictID:0,title="Doanh nghiệp tiêu biểu", order = "ID", orderDir = "desc" }); %>
</asp:Content>
